package com.mengniu.commerce.sync.service.impl;

import com.mengniu.commerce.common.core.domain.R;
import com.mengniu.commerce.sync.api.domain.WeiMengActDataModel;
import com.mengniu.commerce.sync.mapper.ActMapper;
import com.mengniu.commerce.sync.service.ActService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 会员相关实现类
 */
@Service
@Slf4j
public class ActServiceImpl implements ActService {


    @Resource
    private ActMapper actMapper;

    @Override
    public R<?> actInsert(List<WeiMengActDataModel> list) {
        return R.ok(actMapper.insertBatch(list));
    }
}
